﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UsrInsertUpdate.ascx.cs"
    Inherits="HCFramework.Control.News.UsrInsertUpdate" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register src="~/Control/Message/Message.ascx" tagname="Message" tagprefix="uc1" %>
<div class="groupHeader">
    Thêm/Sửa tin tức
</div>
<div>
    <uc1:Message ID="Message1" runat="server" />
</div>
<asp:Panel ID="PanelAddAndEdit" runat="server">
    <table>
        <tr>
            <td style="font-weight: bold">
                Language:
            </td>
            <td>
                <asp:DropDownList ID="cboLang" runat="server">
                    <asp:ListItem Value="VN" Text="Vietnam"></asp:ListItem>
                    <asp:ListItem Value="EN" Text="English"></asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold">
                Title:
            </td>
            <td>
                <asp:TextBox ID="txtTitle" runat="server" Width="500px"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold">
                Summary:
            </td>
            <td>
                <asp:TextBox ID="txtSummary" runat="server" Width="100%" Height="100px" TextMode="MultiLine"></asp:TextBox>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td style="font-weight: bold">
                Content:
            </td>
            <td>
                <telerik:RadEditor AllowScripts="true" ID="RadEditor1" runat="server" Width="100%">
                    <Content>        
        
                    </Content>
                    <ImageManager DeletePaths="~/Image/Upload" UploadPaths="~/Image/Upload" ViewPaths="~/Image/Upload"
                        MaxUploadFileSize="50000000" />
                    <DocumentManager DeletePaths="~/File/Document" UploadPaths="~/File/Document" ViewPaths="~/File/Document"
                        MaxUploadFileSize="2004800" SearchPatterns="*.*" />
                    <FlashManager DeletePaths="~/File/Flash" MaxUploadFileSize="50000000" UploadPaths="~/File/Flash"
                        ViewPaths="~/File/Flash" />
                    <MediaManager DeletePaths="~/File/Media" MaxUploadFileSize="100000000" UploadPaths="~/File/Media"
                        ViewPaths="~/File/Media" />
                    <TemplateManager DeletePaths="~/File/TemplateHtml" UploadPaths="~/File/TemplateHtml"
                        ViewPaths="~/File/TemplateHtml" />
                </telerik:RadEditor>
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="ButtonAdd" CssClass="sexyButton" runat="server" Text="Thêm" OnClick="ButtonAdd_Click" />
                <asp:Button ID="ButtonUpdate" CssClass="sexyButton" Visible="false" runat="server" Text="Sửa" OnClick="ButtonUpdate_Click" />
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Panel>
